/***************************************************************************
   Filename:    helpers.cpp
   Author:      Josh Partridge
   Description: Contains getInput method
****************************************************************************/
#include "helpers.h"

 /************************************************************************************
 Name:               getInput
 Description:        gets a character or multicharacter key (arrows, esc, etc)
 Output:
             return: character representing key pressed
 *************************************************************************************/
char getInput(){

    //get user input
    char ch=getch();

    //accounts for non-letter keys
    if(ch==0||ch==224)
        ch=256+getch();

    return ch;
}
